package com.kingdee.eas.ec.garden.invite.app;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;
import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.eas.ec.basedata.BaseBillEntryCollection;
import com.kingdee.eas.ec.garden.invite.TransInviteSupplierEntryInfo;
import com.kingdee.eas.framework.CoreBillEntryBaseCollection;
import com.kingdee.bos.metadata.entity.SelectorItemCollection;
import com.kingdee.eas.framework.CoreBaseCollection;
import com.kingdee.eas.framework.BillEntryBaseCollection;
import com.kingdee.eas.ec.garden.invite.TransInviteSupplierEntryCollection;
import com.kingdee.eas.ec.garden.invite.BaseInviteSupplierEntryCollection;
import com.kingdee.eas.framework.CoreBaseInfo;



public abstract class AbstractTransInviteSupplierEntryControllerBean extends BaseInviteSupplierEntryControllerBean implements TransInviteSupplierEntryController
{
    protected AbstractTransInviteSupplierEntryControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("793206B9");
    }

    public TransInviteSupplierEntryInfo getTransInviteSupplierEntryInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("8db640f5-413d-48c8-9d3d-e1494360b80a"), new Object[]{ctx, pk});
            invokeServiceBefore(svcCtx);
            TransInviteSupplierEntryInfo retValue = (TransInviteSupplierEntryInfo)_getValue(ctx, pk);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        return super._getValue(ctx, pk);
    }

    public TransInviteSupplierEntryInfo getTransInviteSupplierEntryInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("ab4a05b2-a95b-414b-aa98-37fe5b9f0e08"), new Object[]{ctx, pk, selector});
            invokeServiceBefore(svcCtx);
            TransInviteSupplierEntryInfo retValue = (TransInviteSupplierEntryInfo)_getValue(ctx, pk, selector);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        return super._getValue(ctx, pk, selector);
    }

    public TransInviteSupplierEntryInfo getTransInviteSupplierEntryInfo(Context ctx, String oql) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("e41c3ae3-7306-4ceb-bb2b-6e64bf8983e8"), new Object[]{ctx, oql});
            invokeServiceBefore(svcCtx);
            TransInviteSupplierEntryInfo retValue = (TransInviteSupplierEntryInfo)_getValue(ctx, oql);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, String oql) throws BOSException, EASBizException
    {
        return super._getValue(ctx, oql);
    }

    public TransInviteSupplierEntryCollection getTransInviteSupplierEntryCollection(Context ctx) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("4720522d-5258-4166-853b-65dd894a372a"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            TransInviteSupplierEntryCollection retValue = (TransInviteSupplierEntryCollection)_getCollection(ctx, svcCtx);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx) throws BOSException
    {
        return super._getCollection(ctx, svcCtx);
    }

    public TransInviteSupplierEntryCollection getTransInviteSupplierEntryCollection(Context ctx, EntityViewInfo view) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("5779a161-8b76-4d6a-91d7-5e8deacf0285"), new Object[]{ctx, view});
            invokeServiceBefore(svcCtx);
            TransInviteSupplierEntryCollection retValue = (TransInviteSupplierEntryCollection)_getCollection(ctx, svcCtx, view);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, EntityViewInfo view) throws BOSException
    {
        return super._getCollection(ctx, svcCtx, view);
    }

    public TransInviteSupplierEntryCollection getTransInviteSupplierEntryCollection(Context ctx, String oql) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("5555d960-ed8c-4636-96ee-ece518aa7bd7"), new Object[]{ctx, oql});
            invokeServiceBefore(svcCtx);
            TransInviteSupplierEntryCollection retValue = (TransInviteSupplierEntryCollection)_getCollection(ctx, svcCtx, oql);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, String oql) throws BOSException
    {
        return super._getCollection(ctx, svcCtx, oql);
    }

    public BaseInviteSupplierEntryCollection getBaseInviteSupplierEntryCollection (Context ctx) throws BOSException
    {
    	return (BaseInviteSupplierEntryCollection)(getTransInviteSupplierEntryCollection(ctx).cast(BaseInviteSupplierEntryCollection.class));
    }
    public BaseInviteSupplierEntryCollection getBaseInviteSupplierEntryCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (BaseInviteSupplierEntryCollection)(getTransInviteSupplierEntryCollection(ctx, view).cast(BaseInviteSupplierEntryCollection.class));
    }
    public BaseInviteSupplierEntryCollection getBaseInviteSupplierEntryCollection (Context ctx, String oql) throws BOSException
    {
    	return (BaseInviteSupplierEntryCollection)(getTransInviteSupplierEntryCollection(ctx, oql).cast(BaseInviteSupplierEntryCollection.class));
    }
    public BaseBillEntryCollection getBaseBillEntryCollection (Context ctx) throws BOSException
    {
    	return (BaseBillEntryCollection)(getTransInviteSupplierEntryCollection(ctx).cast(BaseBillEntryCollection.class));
    }
    public BaseBillEntryCollection getBaseBillEntryCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (BaseBillEntryCollection)(getTransInviteSupplierEntryCollection(ctx, view).cast(BaseBillEntryCollection.class));
    }
    public BaseBillEntryCollection getBaseBillEntryCollection (Context ctx, String oql) throws BOSException
    {
    	return (BaseBillEntryCollection)(getTransInviteSupplierEntryCollection(ctx, oql).cast(BaseBillEntryCollection.class));
    }
    public BillEntryBaseCollection getBillEntryBaseCollection (Context ctx) throws BOSException
    {
    	return (BillEntryBaseCollection)(getTransInviteSupplierEntryCollection(ctx).cast(BillEntryBaseCollection.class));
    }
    public BillEntryBaseCollection getBillEntryBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (BillEntryBaseCollection)(getTransInviteSupplierEntryCollection(ctx, view).cast(BillEntryBaseCollection.class));
    }
    public BillEntryBaseCollection getBillEntryBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (BillEntryBaseCollection)(getTransInviteSupplierEntryCollection(ctx, oql).cast(BillEntryBaseCollection.class));
    }
    public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx) throws BOSException
    {
    	return (CoreBillEntryBaseCollection)(getTransInviteSupplierEntryCollection(ctx).cast(CoreBillEntryBaseCollection.class));
    }
    public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (CoreBillEntryBaseCollection)(getTransInviteSupplierEntryCollection(ctx, view).cast(CoreBillEntryBaseCollection.class));
    }
    public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (CoreBillEntryBaseCollection)(getTransInviteSupplierEntryCollection(ctx, oql).cast(CoreBillEntryBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException
    {
    	return (CoreBaseCollection)(getTransInviteSupplierEntryCollection(ctx).cast(CoreBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (CoreBaseCollection)(getTransInviteSupplierEntryCollection(ctx, view).cast(CoreBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (CoreBaseCollection)(getTransInviteSupplierEntryCollection(ctx, oql).cast(CoreBaseCollection.class));
    }
}